/*
 * @Author: 码农 2646995216@qq.com
 * @Date: 2025-03-12 00:22:32
 * @LastEditors: 码农 2646995216@qq.com
 * @LastEditTime: 2025-03-12 01:46:40
 * @FilePath: /socket_udp/main.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include"udpserver.hpp"

/*int main(int argc, char* argv[])
{
	uint16_t port=atoi(argv[1]);
	UdpServer* p = new UdpServer(port);
 
	p->ServerInit();
	p->ServerRun();

	return 0;
}*/
#include"udpclient.hpp"

int main(int argc, char* argv[])
{
    uint16_t port = atoi(argv[2]);
    string ip = argv[1];
 
    UdpClient* p = new UdpClient(ip, port);
 
    p->ClientInit();
    p->ClientRun();
 
    return 0;
}